<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>主页</title>
    <link rel="stylesheet" href="../../static/layui/css/layui.css">
    <link rel="stylesheet" href="../../static/css/main.css">
    <link rel="stylesheet" href="../../static/css/public.css">

    <script src="../../static/js/jquery-3.4.1.min.js"></script>
    <script src="../../static/layui/layui.js"></script>

</head>
<body>

<div class="er">
    <ul class="layui-nav layui-bg-cyan" id="top-nav">
        <li class="layui-nav-item">
            <a href="">首页</a>
        </li>
        <li class="layui-nav-item">
            <a href="">个人中心<span class="layui-badge-dot"></span></a>
        </li>
        <li class="layui-nav-item">
            <a href="#"><img src="../../static/images/2019-08-07/f8aa0870-e4ea-4170-9772-296204476267.jpg"
                             class="layui-nav-img"
                             text="'你好，'+${session.user.username}"></a>

        </li>
        <li class="layui-nav-item">
            <a href="">退出登录</a>

        </li>
    </ul>


</div>
<div class="left">
    <ul class="layui-nav layui-nav-tree  layui-nav-side" lay-filter="test" id="left">
        <li class="layui-nav-item" style="height: 60px"><a href="#" style="font-size:18px;font-family: 'Century Gothic';color: #bce8f1">suda物流系统
        </a></li>
        <li class="layui-nav-item layui-nav-itemed">
            <a href="javascript:;">物流信息</a>
            <dl class="layui-nav-child">
                <dd><a href="../order/allorder.html" target="_top">订单列表</a></dd>
                <dd><a href="../package/allpackage.html" target="_top">包裹信息</a></dd>
                <dd><a href="../route/allroute.html" target="_top">运输信息</a></dd>
                <dd><a href="../store/allstore.html" target="_top">存储信息</a></dd>
                <dd><a href="../vehicle/allvehicle.html" target="_top">货车信息</a></dd>
            </dl>
        </li>
        <li class="layui-nav-item layui-nav-itemed">
            <a href="javascript:;">物流管理</a>
            <dl class="layui-nav-child">
                <dd><a href="../staff/allstaff.html" target="_top">员工列表</a></dd>

                <dd><a href="../warehouse/allwarehouse.html" target="_top">仓库列表</a></dd>

                <dd><a href="../customer/allcustomer.html" target="_top">顾客列表</a></dd>
            </dl>
        </li>
    </ul>

</div>
<div class="main_right">
    <iframe frameborder="0" scrolling="yes" style="width: 100%" src="" id="aa">


    </iframe>
</div>
<div class="layui-footer">
    <!-- 底部固定区域 -->
    <div class="bottom_left">
        <ul class="ul1">
            <li><a href="javascript:;">首页&nbsp;&nbsp;|&nbsp;</a></li>
            <li><a href="javascript:;">站点情况&nbsp;&nbsp;|&nbsp;</a></li>
            <li><a href="javascript:;">物流信息&nbsp;&nbsp;|&nbsp;</a></li>
            <li><a href="javascript:;">物流管理&nbsp;&nbsp;|&nbsp;</a></li>
            <li><a href="javascript:;">操作管理&nbsp;&nbsp;|&nbsp;</a></li>
            <li><a href="javascript:;">权限管理</a></li>

        </ul>
        <br> <br>
        <p>版权所有 Copyright &copy; 2021 皖ICP@Sun_Wangping</p>
        <p>技术支持： braisedPanda</p>
        <br>
    </div>

</div>

<script>
    //注意：导航 依赖 element 模块，否则无法进行功能性操作
    layui.use('element', function () {
        var element = layui.element;
        //…
    });

    $(function () {
        $(".main_left a").on("click", function () {
            var address = $(this).attr("data-src");
            $("iframe").attr("src", address);
        });

        var frame = $("#aa");
//        var top = $("#top-nav");
//        var topheight = top.height();
//        console.log("top高度："+topheight);
        var frameheight = $(window).height();
        console.log(frameheight);
        frame.css("height", frameheight);
    });
</script>
</body>
</html>